package com.ak.server.quartz.mapper;

import com.ak.server.quartz.entity.SysJobLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * 调度任务日志信息 数据层
 *
 * @author Vean
 */
public interface SysJobLogMapper extends BaseMapper<SysJobLog> {
    /**
     * 获取quartz调度器日志的计划任务
     *
     * @param jobLog 调度日志信息
     * @return 调度任务日志集合
     */
    IPage<SysJobLog> findJobLogPage(Page<SysJobLog> page, @Param("jobLog") SysJobLog jobLog);

    /**
     * 批量删除调度日志信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteJobLogByIds(String[] ids);

    /**
     * 清空任务日志
     */
    void cleanJobLog();
}
